import instance from '@/http/index'

/**
 *
 * @param {*} data id💈name💈sex💈email
 * @returns
 * @zs 更新用户信息
 */
export const updateUserInfo = data => {
  return instance({
    url: '/user/updateUserInfo',
    method: 'POST',
    data
  })
}

/**
 *
 * @param {*} data id💈oldpassword💈newpassword💈nextpassword
 * @returns
 * @zs 更新用户密码
 */
export const updateUserPasswordAPI = data => {
  return instance({
    url: '/user/updateUserPassword',
    method: 'POST',
    data
  })
}

/**
 *
 * @param {*} data account💈url
 * @returns
 * @zs 绑定账号
 */
export const bindAccountAPI = data => {
  return instance({
    url: '/user/bindAccount',
    method: 'POST',
    data
  })
}

